#include "soaAndrEnvir.h"
//#include "node.h"
#include "ca_node.h"
SoaAndrEnvir::SoaAndrEnvir()
{

}

SoaAndrEnvir::~SoaAndrEnvir()
{

}

SoaAndrEnvir &SoaAndrEnvir::getInstance()
{
    static SoaAndrEnvir instance;
    return instance;
}

// uint8	0：预生产环境 1：正式环境
void SoaAndrEnvir::Receive_AndroidEnvironment_Notify(const uint8_t& env)
{
    if (env == 0)
    {
        global_data::g_cloudNetPrefix = STR_PREEVN;
    }
    else
    {
        global_data::g_cloudNetPrefix = STR_DEVEVN;
    }

    Log_Info("receive AndroidEnvironment notify:{}  global_data::g_cloudNetPrefix:{}", env, global_data::g_cloudNetPrefix);

    return;
}

